//
//  ProductDetailViewController.h
//  PurchasingMeeting
//
//  Created by zhuang yihang on 7/17/13.
//  Copyright (c) 2013 YX. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NumberInputView.h"
#import "OrderObject.h"
#import "UserObject.h"
#import "PopupView.h"
#import "BaseViewController.h"
#import "ShopViewController.h"
#import "ZBarSDK.h"
#import "config.h"

@class ProductObject;
@interface ProductDetailViewController : BaseViewController<NumberInputViewDelegate,UITextFieldDelegate,PopupViewDelegate,ZBarReaderDelegate,UIAlertViewDelegate>
{
    ProductObject *obj;

    UITextField * text;
    NSArray *similar;

    
    NSMutableArray *sizegroupid;
    //加裤尺码组
    NSArray *jksizegroupid;
    
    NSArray *bigsizegroupid;
    
    //加大码对象
    
#ifdef XLarge_ENABLE
    ProductObject *bigobj;
#endif
    
    OrderObject *order;
    //加大码的订单
    OrderObject *bigorder;
    //加大码同款订单
    NSMutableArray *bigorders;
    //加大码的同款不同色
    NSArray *bigsimilar;
    
    
    ProductObject *jkobj;
    //加裤订单
    OrderObject *jkorder;
    //加裤同款订单
    NSMutableArray *jkorders;
    //加裤的视图
    UIScrollView* bigView;
    UIScrollView *bigscroll;
    //加大码的视图
    UIScrollView* jkView;
    UIScrollView *jkscroll;
    //加裤的同款不同色
    NSArray *jksimilar;
    
    NSMutableArray *orders;
    

    
    //选择的版
    int sizetabindex;
    
    int countnumber;
    int similarcountnumber;
    UIScrollView *scroll;
    UIScrollView *view;
    UIImageView *tint;
    NSString *searchtext;
    NSArray *shop;
    UIImageView *copytopaste;
    UserObject *user;
    BOOL isclear;
    PopupView *popup;
    NSString *numshopid;
    NSMutableArray *shopidarray;
    UIView *shopview;
    NSMutableArray *shoparray;
    int right;
    UITextField *edittext;
    UIScrollView *iphonescroll;
    ShopViewController *controller;
    UIScrollView *scrollview;
    BOOL isclick;
   // UIButton *collect;
    UITextField *codesearch;
    NSArray *searchproduct;
    NSMutableArray *items;
    float width;
    UIImageView *detail;
    int detailleftnum;
    UILabel *sale;
    UILabel *code1;
    int numobjtag;
    int numtag;
    int totalnum;
    int totalnum1;
    int textnum;
    UILabel *totallabel;
    
    UIImageView *productImage_;
    UIImageView *zbarimageview;
    UILabel *zbarlabel;
    int btntag;
    int groupcount;
    UIView *matchview;
    NumberInputView *input;
    NSMutableArray *countarr;
    NSMutableArray *bigcountarr;
    NSMutableArray *jkcountarr;
    int minnum;
    BOOL iscopy;
    BOOL ismodify;
    UIView *issaveview;
    BOOL isret;
    BOOL iscopyall;
    BOOL isclear1;
    UIView *backview;
    NSArray *totalsizegroupid;
    
    NSDictionary *additionProduct;
}

@property (nonatomic,strong)UIScrollView *scroll;
- (id)initWithProduct:(ProductObject *)product objtag:(int)objtag tag:(int)tag;

@end
